
import request from '@/plugin/axios'

// 获取列表
export function getinspquolist (params) {
  return request({
    url: '/bdms/inspquo/list',
    method: 'get',
    params: request.adornParams(params)
  })
}
// 获取列表
export function getinspquopage (params) {
  return request({
    url: '/bdms/inspquo/page',
    method: 'get',
    params: request.adornParams(params)
  })
}
// 获取今天语录
export function getinspquoday () {
    return request({
      url: '/bdms/inspquo/day',
      method: 'get',
      params: request.adornParams({})
    })
  }
// 获取信息
export function getinspquoinfo (id) {
  return request({
    url: '/bdms/inspquo/info/' + id,
    method: 'get',
    params: request.adornParams({})
  })
}

// 添加
export function addinspquo (data) {
  return request({
    url: '/bdms/inspquo/save',
    method: 'post',
    data
  })
}

// 修改
export function updateinspquo (data) {
  return request({
    url: '/bdms/inspquo/update',
    method: 'put',
    data
  })
}

// 批量删除
export function delBatchinspquo (params) {
  return request({
    url: '/bdms/inspquo/delete',
    method: 'post',
    data: request.adornData(params, false)
  })
}

// 删除
export function delinspquo(id) {
  return request({
    url: '/bdms/inspquo/delete/' + id,
    method: 'delete',
  })
}